package 异常;

public class A02登录管理器
{
	public A02User UserLogin(String name,String password) throws A02自定义异常{
		if(!"admin".equals(name)){
			throw new A02自定义异常("用户名错误");
		}
		if(!"123456".equals(password)){
			throw new A02自定义异常("密码错误");
		}
		A02User user=new A02User("admin","123456","男",20);
		return user;
	}
}
